<div id="courseSelect">
    <div class="panel">
        <div class="panel-body">
            <div class="top clearfix" >
                <div class="right pull-left" >
                    <div class="top">
                        <b>我的课程</b>
                        <div ng-repeat="item in data.terms" ng-if="item.id==data.currTerm"><i></i>{{item.name}}共有<span>{{item.plans.length}}</span>门课程,共需修的学分为<span>{{item.totalScore}}</span>分</div>
                    </div>
                    <div class="bottom">
                        <div class="buttonGroupDirective">
                            <button type="button" ng-repeat="item in data.terms" class="btn" ng-class="{'active':item.id==data.currTerm}" ng-click="showTerm(item.id)" >{{item.name}}</button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="bottom">
                <div class="clearfix">
                    <div class="left pull-left"><i></i>课程列表</div>
                    <!--<div class="right pull-right">剩余<span>{{}}</span>门可选<i></i></div>-->
                </div>
                <form name="courseSelect"  ng-repeat="term in data.terms" ng-if="term.id==data.currTerm" novalidate ng-submit="postForm(term.id)">
                    <table class="table record table-bordered table-striped">
                        <tr>
                            <th>选择</th>
                            <th>课程</th>
                            <th>课程类型</th>
                            <th>课时</th>
                            <th>课程学分</th> 
                            <th>课程学费</th>  
                            <th>考试类型</th>
                            <th>考试分组</th>   
                            <th>状态</th>                
                        </tr>
                        <tr ng-repeat="item in term.plans">
                            <td><input name="courseIds" value="{{item.id}}" type="checkbox"  ng-checked="item.selected" ng-disabled="item.selected" /></td>
                            <td>{{item.courseName}}</td>
                            <td>{{item.typeName}}</td>
                            <td>{{item.course.classTime}}课时</td>
                            <td>{{item.score}}</td>
                            <td>{{item.score*viewBag.scoreSetup.scoreMoney}}</td>
                            <td>{{item.course.examName}}</td>
                            <td>{{item.groupName}}</td>
                            <td>{{item.selected ? "已选择" : "未选择"}}</td>
                        </tr>
                    </table>
                    <div class="submit">
                        <button type="submit" class="btn btn-primary" >完成选择</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>





